#include <stdio.h>
#include <sys/types.h>
#include <unistd.h>

int main(int argc, char **argv)
{
	pid_t pid = fork();
	if(-1 == pid){
		perror("forl())");
		return -1;
	}
	if (pid == 0){
		//子进程执行的代码
		printf("child!\n");
	}else{
		//父进程执行的代码
		printf("parent!\n");
	}
	printf("hehe\n");
	return 0;
}
